package com.ruoyi.biz.mapper;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.biz.model.resp.BizCostResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.biz.domain.BizCost;

/**
 * 成本开支Mapper接口
 * 
 * @author tianl
 * @date 2025-01-01
 */
@Mapper
public interface BizCostMapper extends BaseMapper<BizCost> {
    IPage<BizCostResp> list(IPage page, @Param("model") BizCost req);

    List<BizCostResp> list(@Param("model") BizCost req);

    List<BizCost> listByProjectId(Long projectId);
    BigDecimal moneyByProjectIds(@Param("projectIds") List<Long> projectIds);
    List<BizCost> listByProjectIdType(@Param("projectId")Long projectId,@Param("types")List<String> types);

    List<BizCostResp> listByProjectIds(@Param("projectIds") List<Long> projectIds);
    List<BizCost> listStat(@Param("projectIds") List<Long> projectIds, @Param("times") List<Date> times, @Param("dupIds") List<Long> dupIds);

    BizCostResp selectDetail(Long id);

    BizCost findProjectChannel(@Param("projectId")Long projectId);
}
